<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>首页楼层管理</title>
	<link href="/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="place">
    	<span>位置：</span>
	    <ul class="placeul"><li><a href="/index.html">首页</a></li><li>首页楼层管理</li></ul>
    </div>
    
    <div class="rightinfo">
	    <div class="tools">
	    	<ul class="toolbar">
		        <li class="click"><a href="/sys/floor/add.html"><span><img src="/images/t01.png" /></span>添加</a></li>
		        <li id="delBatch"><span><img src="/images/t03.png" /></span>批量删除</li>
	        </ul>
	        <ul class="toolbar1">
	        	<form action="/sys/floor/floors.html" method="post">
		        	<span>
		            	<select class="select3" name="status" style="width: 100px;" <#if op?? && op="view">disabled=true</#if>>
						    <option value="">选择状态</option>
						    <option value=1 <#if (floor.status)?? && (floor.status)?number ==1>selected="selected"</#if>>开启</option>
						    <option value=2 <#if (floor.status)?? && (floor.status)?number ==2>selected="selected"</#if>>关闭</option>
					    </select>
				    	<input type="submit" class="scbtn" value="查询"/>
		        	</span>
	    		</form>
	        </ul>
	    </div>
        
    	<table class="tablelist">
	    	<thead>
		    	<tr>
			        <th width="5%"><input  type="checkbox" class="check_box" id="allChk"></input></th>
			        <th width="5%">ID</th>
			        <th width="15%">标题</th>
			        <th width="5%">状态</th>
			        <th width="5%">顺序</th>
			        <th width="20%">备注</th>
			        <th width="30%">链接地址</th>
			        <th width="15%">操作</th>
		        </tr>
	        </thead>
	        <tbody>
	        <#if floors??>
			  		<#list floors as item>
						<tr>
					        <td><input type="checkbox" class="check_box" name="colChk" value=${(item.id)!0}></input></td>
					        <td>${(item.id)!""}</td>
					        <td><#if item.url??><a href="${(item.url)!""}" target="_blank"></#if>${(item.title)!""}<#if item.url??></a></#if></td>
					        <td><#if item.status?? && item.status == 1>正常<#else>关闭</#if></td>
					        <td>${(item.displayOrder)!""}</td>
					        <td>${(item.description)!""}</td>
					        <td>${(item.url)!""}</td>
					        <td>
					        	<a href="/sys/floor/view/${item.id}.html">查看</a>&ensp;|&ensp;
					        	<a href="/sys/floor/edit/${item.id}.html">编辑</a>&ensp;|&ensp;
					        	<a href="javascript:void(0);" name="delBtn" dataId=${(item.id)!0}>删除</a>
					        </td>
				        </tr> 
			  		</#list>
			  	</#if>
	        </tbody>
	    </table>
   		<#import "/common/pager.ftl" as page>
		<#if count??>
			<@page.pager start=start size=size count=count url="/sys/floor/floors.html?t=admin" gotoPage=true />
		</#if>
	</body>
	<script type="text/javascript" src="/js/jquery-1.10.1.min.js"></script>
	<script type="text/javascript" src="/js/commonList.js"></script>
	<script type="text/javascript">
		/** 删除的URL地址前缀，在commonList.js里面调用的删除方法会用到 */
		var delUrl = "/sys/floor";
	</script>
</html>